<?php 
/**
 * @name wapinfo.php
 * @msg 手机文章表
 * @author zhouzhe@haibao.com
 * @date 2015-6-4
 */
namespace haibao\cms\model\data;
class WapInfo extends Base{
	/**
	 * 文章类型 
	 */
	const INFO_TYPE_ARTICLE = 1;
	/**
	 * 图集类型
	 */
	const INFO_TYPE_IMAGE_COLLECTIVE = 2;
	
	/**
	 * 视频类型
	 */
	const INFO_TYPE_VIDEO = 4;
	
	/**
	 * 未发布
	 */
	const PUBLISHED_NO = 0;
	
	/**
	 * 已发布
	 */
	const PUBLISHED_YES = 1;
	
	/**
	 * 预发布
	 */
	const PUBLISHED_PRE = 2;
	
	/**
	 * 发布中
	 */
	const PUBLISHED_ING = 3;
	
	/**
	 * 首页置顶 
	 */
	const INDEX_TOP_YES = 1;
	const INDEX_TOP_NO = 0;
	
	/**
	 * 频道页置顶
	 */
	const CHANNEL_TOP_YES = 1;
	const CHANNEL_TOP_NO = 0;
	
	/**
	 * 信息Id
	 */
	public $InfoId;
	
	/**
	 * 标题
	 */
	public $Title;
	
	/**
	 * 创建者Id
	 */
	public $CreateBy;
	
	/**
	 * 创建时间
	 */
	public $CreateTime;
	
	/**
	 * 发布用户
	 */
	public $Author;
	
	
	/**
	 * 是否发布
	 */
	public $Published;
	
	/**
	 * 发布时间
	 */
	public $PublishTime;
	
	/**
	 * 发布Id
	 */
	public $PublishId;
	
	/**
	 * 文章等级
	 */
	public $Level;
	
	public $TagId;
	
	public $InfoType;
	
	public $IndexTop;
	
	public $ChannelTop;
	/**
	 * 文章属性表
	 */
	public $ArticleProperty;
	
	public $infoUrl;
	
	public $InfoChannel;
	
	public function __construct(){
		parent::__construct();
		$this->intField('InfoId', 'InfoId',true);
		$this->stringField('Title','Title',true);
		$this->intField('CreateBy', 'CreateBy',true);
		$this->dateField('CreateTime', 'CreateTime',true);
		$this->stringField('Author', 'Author',true);
		$this->intField('Published', 'Published',true);
		$this->dateField('PublishTime', 'PublishTime',true);
		$this->intField('PublishId', 'PublishId',true);
		$this->intField('Level', 'Level',true);
		$this->intField('TagId', 'TagId',true);
		$this->intField('InfoType', 'InfoType',true);
		$this->intField('IndexTop','IndexTop',true);
		$this->intField('ChannelTop','ChannelTop',true);
		$this->setTableName ( 'WapInfo' );
	}
}
?>